﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TextTemplating;
using System.CodeDom.Compiler;

namespace MVC4WPF.Automation.Data
{
    /// <summary>
    /// Data class that stores the results of a T4 template transformation to code.
    /// </summary>
    [Serializable()]
    public class TransformResults
    {
        /// <summary>
        /// The fully formatted code as a string.
        /// </summary>
        public string Transformation { get; set; }

        /// <summary>
        /// Stores the compiler errors that occured during transformation, if any errors occured.
        /// </summary>
        public System.CodeDom.Compiler.CompilerErrorCollection TransformErrors { get; set; }
    }
}
